{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "lin_key = \"65b04d34830504b4f0a6fe32550d797a\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "中大南方_address = \"广东省广州市中山大学南方学院\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {\n",
    "    \"key\":lin_key,\n",
    "    \"address\":中大南方_address\n",
    "}\n",
    "# positional argument follows keyword argument\n",
    "# pa 一定要放在前面，keyword argument放在末尾！！！可以\n",
    "response = requests.get(url,params=params)\n",
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方_location = response.json()['geocodes'][0]['location']\n",
    "中大南方_location"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "def regeo(key,location,extensions=\"base\",radius=None,poitype=None):\n",
    "    \"\"\"\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"extensions\":extensions,\n",
    "        \"radius\":radius,\n",
    "        \"poitype\":poitype\n",
    "    }\n",
    "    r = requests.get(url,params)\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "params = {\n",
    "    \"key\":lin_key,\n",
    "    \"location\":中大南方_location,\n",
    "    \"extensions\":\"all\"\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['博学路', '中山路', 'S29从莞深高速']"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_roads_ = []\n",
    "for item in r.json()['regeocode']['roads']:\n",
    "#     print(item['name'])\n",
    "    _roads_.append(item['name'])\n",
    "_roads_"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461203',\n",
       "    'location': '113.68,23.634',\n",
       "    'direction': '南',\n",
       "    'name': '博学路',\n",
       "    'distance': '156.951'},\n",
       "   {'id': '020F49F0050462451',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '东南',\n",
       "    'name': '中山路',\n",
       "    'distance': '343.951'},\n",
       "   {'id': '020F49F006047765',\n",
       "    'location': '113.682,23.6394',\n",
       "    'direction': '南',\n",
       "    'name': 'S29从莞深高速',\n",
       "    'distance': '807.947'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461203',\n",
       "    'second_id': '020F49F0050462451',\n",
       "    'location': '113.676794,23.634661',\n",
       "    'distance': '343.951',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '东南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '536585.849985',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'adcode': '440117',\n",
       "    'name': '中山大学南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '中山大学南方学院',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'distance': '2.69979',\n",
       "    'tel': '020-61787331',\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFF2VMJ4',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号中山大学南方学院内',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院-综合楼',\n",
       "    'location': '113.680117,23.631544',\n",
       "    'distance': '142.466',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B0FFFTC9PH',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.193172',\n",
       "    'name': '中山大学南方学院教学楼10号',\n",
       "    'location': '113.680125,23.633492',\n",
       "    'distance': '132.988',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TQKX',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼6号',\n",
       "    'location': '113.678424,23.633710',\n",
       "    'distance': '153.818',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B00141TQGR',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼7号',\n",
       "    'location': '113.678600,23.633330',\n",
       "    'distance': '109.298',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B00141WQCO',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.14954',\n",
       "    'name': '中山大学南方学院教学楼8号',\n",
       "    'location': '113.680399,23.634329',\n",
       "    'distance': '225.543',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFG9IORM',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院内',\n",
       "    'poiweight': '0.287887',\n",
       "    'name': '中山大学南方学院-图书馆',\n",
       "    'location': '113.679177,23.632762',\n",
       "    'distance': '23.6163',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFKP9EQJ',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院4号实验楼',\n",
       "    'location': '113.679963,23.632652',\n",
       "    'distance': '69.4077',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJKIA10',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院',\n",
       "    'poiweight': '0.191691',\n",
       "    'name': '中山大学南方学院-第11教学楼',\n",
       "    'location': '113.680037,23.633173',\n",
       "    'distance': '101.294',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TRVH',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路21',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼2号',\n",
       "    'location': '113.677060,23.631346',\n",
       "    'distance': '264.846',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKERBQZ',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7号附近',\n",
       "    'poiweight': '0.289141',\n",
       "    'name': '中山大学南方学院惟贤门',\n",
       "    'location': '113.678437,23.633721',\n",
       "    'distance': '154.082',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFKP81F4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '政商研究院教学楼9号',\n",
       "    'location': '113.679949,23.633919',\n",
       "    'distance': '163.951',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP9ET5',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院1号实验楼',\n",
       "    'location': '113.678215,23.631370',\n",
       "    'distance': '172.86',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TR76',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路29',\n",
       "    'poiweight': '0.052819',\n",
       "    'name': '中山大学南方学院教学楼4号',\n",
       "    'location': '113.677460,23.630490',\n",
       "    'distance': '297.315',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP7Q5N',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院2号实验楼',\n",
       "    'location': '113.678211,23.630956',\n",
       "    'distance': '210.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00140TWHT',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '笃行路2号',\n",
       "    'poiweight': '0.157653',\n",
       "    'name': '教工住宅1号',\n",
       "    'location': '113.678490,23.630432',\n",
       "    'distance': '251.758',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0G3ARGF5Y',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286321',\n",
       "    'name': '中山大学南方学院教学楼1号',\n",
       "    'location': '113.677077,23.631783',\n",
       "    'distance': '241.753',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFLBEOND',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.190963',\n",
       "    'name': '聚贤楼10号',\n",
       "    'location': '113.681253,23.631036',\n",
       "    'distance': '263.444',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路19号附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '263.674',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '275.62',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJLW0O9',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路4附近',\n",
       "    'poiweight': '0.191645',\n",
       "    'name': '中山大学南方学院西区饭堂',\n",
       "    'location': '113.676210,23.632177',\n",
       "    'distance': '316.572',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKPXMCN',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191739',\n",
       "    'name': '中山大学南方学院音乐系',\n",
       "    'location': '113.678792,23.635389',\n",
       "    'distance': '316.942',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJBZLYT',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路与博学路交叉口东南50米',\n",
       "    'poiweight': '0.297382',\n",
       "    'name': '铜像广场',\n",
       "    'location': '113.676921,23.634555',\n",
       "    'distance': '326.444',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;风景名胜'},\n",
       "   {'id': 'B0FFG8CSEK',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.185371',\n",
       "    'name': 'L5员工宿舍',\n",
       "    'location': '113.682583,23.631487',\n",
       "    'distance': '356.923',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKPXO2S',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.188247',\n",
       "    'name': '中山大学南方学院医务室',\n",
       "    'location': '113.679394,23.635924',\n",
       "    'distance': '372.556',\n",
       "    'tel': [],\n",
       "    'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '331.438',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0FFHHLMF8',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "    'poiweight': '0.178935',\n",
       "    'name': '茗语轩餐厅',\n",
       "    'location': '113.681901,23.634495',\n",
       "    'distance': '341.332',\n",
       "    'tel': '13929501395;13533390928',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFLJV996',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286264',\n",
       "    'name': '保利桃花源66BLOCK',\n",
       "    'location': '113.682954,23.631008',\n",
       "    'distance': '412.208',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFKPXY26',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速公路',\n",
       "    'poiweight': '0.21826',\n",
       "    'name': '中山大学南方学院聚贤楼5号',\n",
       "    'location': '113.680265,23.636313',\n",
       "    'distance': '427.447',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "   {'id': 'B0FFGXGN3K',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院',\n",
       "    'poiweight': '0.188657',\n",
       "    'name': '中山大学南方学院宿舍H25',\n",
       "    'location': '113.683474,23.632020',\n",
       "    'distance': '430.984',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>0.450402</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>2.69979</td>\n",
       "      <td>020-61787331</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFF2VMJ4</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道886号中山大学南方学院内</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院-综合楼</td>\n",
       "      <td>113.680117,23.631544</td>\n",
       "      <td>142.466</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFFTC9PH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.193172</td>\n",
       "      <td>中山大学南方学院教学楼10号</td>\n",
       "      <td>113.680125,23.633492</td>\n",
       "      <td>132.988</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00141TQKX</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼6号</td>\n",
       "      <td>113.678424,23.633710</td>\n",
       "      <td>153.818</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B00141TQGR</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼7号</td>\n",
       "      <td>113.678600,23.633330</td>\n",
       "      <td>109.298</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00141WQCO</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.14954</td>\n",
       "      <td>中山大学南方学院教学楼8号</td>\n",
       "      <td>113.680399,23.634329</td>\n",
       "      <td>225.543</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFG9IORM</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院内</td>\n",
       "      <td>0.287887</td>\n",
       "      <td>中山大学南方学院-图书馆</td>\n",
       "      <td>113.679177,23.632762</td>\n",
       "      <td>23.6163</td>\n",
       "      <td>020-61787368;020-61787371</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFKP9EQJ</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院4号实验楼</td>\n",
       "      <td>113.679963,23.632652</td>\n",
       "      <td>69.4077</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFJKIA10</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院</td>\n",
       "      <td>0.191691</td>\n",
       "      <td>中山大学南方学院-第11教学楼</td>\n",
       "      <td>113.680037,23.633173</td>\n",
       "      <td>101.294</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B00141TRVH</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路21</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼2号</td>\n",
       "      <td>113.677060,23.631346</td>\n",
       "      <td>264.846</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFKERBQZ</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7号附近</td>\n",
       "      <td>0.289141</td>\n",
       "      <td>中山大学南方学院惟贤门</td>\n",
       "      <td>113.678437,23.633721</td>\n",
       "      <td>154.082</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFKP81F4</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>政商研究院教学楼9号</td>\n",
       "      <td>113.679949,23.633919</td>\n",
       "      <td>163.951</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFKP9ET5</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院1号实验楼</td>\n",
       "      <td>113.678215,23.631370</td>\n",
       "      <td>172.86</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B00141TR76</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路29</td>\n",
       "      <td>0.052819</td>\n",
       "      <td>中山大学南方学院教学楼4号</td>\n",
       "      <td>113.677460,23.630490</td>\n",
       "      <td>297.315</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFKP7Q5N</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院2号实验楼</td>\n",
       "      <td>113.678211,23.630956</td>\n",
       "      <td>210.76</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B00140TWHT</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>笃行路2号</td>\n",
       "      <td>0.157653</td>\n",
       "      <td>教工住宅1号</td>\n",
       "      <td>113.678490,23.630432</td>\n",
       "      <td>251.758</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0G3ARGF5Y</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.286321</td>\n",
       "      <td>中山大学南方学院教学楼1号</td>\n",
       "      <td>113.677077,23.631783</td>\n",
       "      <td>241.753</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFLBEOND</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.190963</td>\n",
       "      <td>聚贤楼10号</td>\n",
       "      <td>113.681253,23.631036</td>\n",
       "      <td>263.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFKP81F0</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路19号附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼1号(文学与传媒学院)</td>\n",
       "      <td>113.676866,23.631736</td>\n",
       "      <td>263.674</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFKP838K</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路25</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼3号(外国语学院)</td>\n",
       "      <td>113.677247,23.630947</td>\n",
       "      <td>275.62</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFJLW0O9</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路4附近</td>\n",
       "      <td>0.191645</td>\n",
       "      <td>中山大学南方学院西区饭堂</td>\n",
       "      <td>113.676210,23.632177</td>\n",
       "      <td>316.572</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B0FFKPXMCN</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路</td>\n",
       "      <td>0.191739</td>\n",
       "      <td>中山大学南方学院音乐系</td>\n",
       "      <td>113.678792,23.635389</td>\n",
       "      <td>316.942</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0FFJBZLYT</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路与博学路交叉口东南50米</td>\n",
       "      <td>0.297382</td>\n",
       "      <td>铜像广场</td>\n",
       "      <td>113.676921,23.634555</td>\n",
       "      <td>326.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>风景名胜;风景名胜;风景名胜</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B0FFG8CSEK</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.185371</td>\n",
       "      <td>L5员工宿舍</td>\n",
       "      <td>113.682583,23.631487</td>\n",
       "      <td>356.923</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B0FFKPXO2S</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.188247</td>\n",
       "      <td>中山大学南方学院医务室</td>\n",
       "      <td>113.679394,23.635924</td>\n",
       "      <td>372.556</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;医疗保健服务场所;医疗保健服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B0FFH6K3U9</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇温泉大道882号中大南方H7栋1-5层</td>\n",
       "      <td>0.254885</td>\n",
       "      <td>广州中大南方招待所</td>\n",
       "      <td>113.676330,23.631332</td>\n",
       "      <td>331.438</td>\n",
       "      <td>020-61787222</td>\n",
       "      <td>住宿服务;住宿服务相关;住宿服务相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B0FFHHLMF8</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院明辩路2号第三饭堂</td>\n",
       "      <td>0.178935</td>\n",
       "      <td>茗语轩餐厅</td>\n",
       "      <td>113.681901,23.634495</td>\n",
       "      <td>341.332</td>\n",
       "      <td>13929501395;13533390928</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFLJV996</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.286264</td>\n",
       "      <td>保利桃花源66BLOCK</td>\n",
       "      <td>113.682954,23.631008</td>\n",
       "      <td>412.208</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B0FFKPXY26</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速公路</td>\n",
       "      <td>0.21826</td>\n",
       "      <td>中山大学南方学院聚贤楼5号</td>\n",
       "      <td>113.680265,23.636313</td>\n",
       "      <td>427.447</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;商务住宅相关;商务住宅相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B0FFGXGN3K</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>0.188657</td>\n",
       "      <td>中山大学南方学院宿舍H25</td>\n",
       "      <td>113.683474,23.632020</td>\n",
       "      <td>430.984</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea                 address poiweight  \\\n",
       "0   B00140MR9A         西           []                温泉大道882号  0.450402   \n",
       "1   B0FFF2VMJ4        东南           []       温泉大道886号中山大学南方学院内  0.148531   \n",
       "2   B0FFFTC9PH        东北           []         从莞深高速(中山大学南方学院)  0.193172   \n",
       "3   B00141TQKX        西北           []                 温泉大道882  0.148531   \n",
       "4   B00141TQGR        西北           []                    博学路7  0.148531   \n",
       "5   B00141WQCO        东北           []                     博学路   0.14954   \n",
       "6   B0FFG9IORM        西北           []       温泉大道882号中山大学南方学院内  0.287887   \n",
       "7   B0FFKP9EQJ         东           []                   博学路附近  0.191742   \n",
       "8   B0FFJKIA10        东北           []        温泉大道882号中山大学南方学院  0.191691   \n",
       "9   B00141TRVH        西南           []                   博学路21  0.148531   \n",
       "10  B0FFKERBQZ        西北           []                 博学路7号附近  0.289141   \n",
       "11  B0FFKP81F4        东北           []                     中山路  0.191742   \n",
       "12  B0FFKP9ET5        西南           []                   博学路附近  0.191742   \n",
       "13  B00141TR76        西南           []                   博学路29  0.052819   \n",
       "14  B0FFKP7Q5N        西南           []                     博学路  0.191742   \n",
       "15  B00140TWHT         南           []                   笃行路2号  0.157653   \n",
       "16  B0G3ARGF5Y         西           []                      []  0.286321   \n",
       "17  B0FFLBEOND        东南           []         从莞深高速(中山大学南方学院)  0.190963   \n",
       "18  B0FFKP81F0         西           []                博学路19号附近  0.191742   \n",
       "19  B0FFKP838K        西南           []                   博学路25  0.191742   \n",
       "20  B0FFJLW0O9         西           []                  博学路4附近  0.191645   \n",
       "21  B0FFKPXMCN         北           []                     中山路  0.191739   \n",
       "22  B0FFJBZLYT        西北           []         中山路与博学路交叉口东南50米  0.297382   \n",
       "23  B0FFG8CSEK         东           []         从莞深高速(中山大学南方学院)  0.185371   \n",
       "24  B0FFKPXO2S         北           []                   博学路附近  0.188247   \n",
       "25  B0FFH6K3U9        西南           []  温泉镇温泉大道882号中大南方H7栋1-5层  0.254885   \n",
       "26  B0FFHHLMF8        东北           []       中山大学南方学院明辩路2号第三饭堂  0.178935   \n",
       "27  B0FFLJV996        东南           []                      []  0.286264   \n",
       "28  B0FFKPXY26         北           []                 从莞深高速公路   0.21826   \n",
       "29  B0FFGXGN3K         东           []                中山大学南方学院  0.188657   \n",
       "\n",
       "               name              location distance                        tel  \\\n",
       "0          中山大学南方学院  113.679262,23.632583  2.69979               020-61787331   \n",
       "1      中山大学南方学院-综合楼  113.680117,23.631544  142.466                         []   \n",
       "2    中山大学南方学院教学楼10号  113.680125,23.633492  132.988                         []   \n",
       "3     中山大学南方学院教学楼6号  113.678424,23.633710  153.818                         []   \n",
       "4     中山大学南方学院教学楼7号  113.678600,23.633330  109.298                         []   \n",
       "5     中山大学南方学院教学楼8号  113.680399,23.634329  225.543                         []   \n",
       "6      中山大学南方学院-图书馆  113.679177,23.632762  23.6163  020-61787368;020-61787371   \n",
       "7     中山大学南方学院4号实验楼  113.679963,23.632652  69.4077                         []   \n",
       "8   中山大学南方学院-第11教学楼  113.680037,23.633173  101.294                         []   \n",
       "9     中山大学南方学院教学楼2号  113.677060,23.631346  264.846                         []   \n",
       "10      中山大学南方学院惟贤门  113.678437,23.633721  154.082                         []   \n",
       "11       政商研究院教学楼9号  113.679949,23.633919  163.951                         []   \n",
       "12    中山大学南方学院1号实验楼  113.678215,23.631370   172.86                         []   \n",
       "13    中山大学南方学院教学楼4号  113.677460,23.630490  297.315                         []   \n",
       "14    中山大学南方学院2号实验楼  113.678211,23.630956   210.76                         []   \n",
       "15           教工住宅1号  113.678490,23.630432  251.758                         []   \n",
       "16    中山大学南方学院教学楼1号  113.677077,23.631783  241.753                         []   \n",
       "17           聚贤楼10号  113.681253,23.631036  263.444                         []   \n",
       "18   教学楼1号(文学与传媒学院)  113.676866,23.631736  263.674                         []   \n",
       "19     教学楼3号(外国语学院)  113.677247,23.630947   275.62                         []   \n",
       "20     中山大学南方学院西区饭堂  113.676210,23.632177  316.572                         []   \n",
       "21      中山大学南方学院音乐系  113.678792,23.635389  316.942                         []   \n",
       "22             铜像广场  113.676921,23.634555  326.444                         []   \n",
       "23           L5员工宿舍  113.682583,23.631487  356.923                         []   \n",
       "24      中山大学南方学院医务室  113.679394,23.635924  372.556                         []   \n",
       "25        广州中大南方招待所  113.676330,23.631332  331.438               020-61787222   \n",
       "26            茗语轩餐厅  113.681901,23.634495  341.332    13929501395;13533390928   \n",
       "27     保利桃花源66BLOCK  113.682954,23.631008  412.208                         []   \n",
       "28    中山大学南方学院聚贤楼5号  113.680265,23.636313  427.447                         []   \n",
       "29    中山大学南方学院宿舍H25  113.683474,23.632020  430.984                         []   \n",
       "\n",
       "                        type  \n",
       "0             科教文化服务;学校;高等院校  \n",
       "1               科教文化服务;学校;学校  \n",
       "2       科教文化服务;科教文化场所;科教文化场所  \n",
       "3               科教文化服务;学校;学校  \n",
       "4             科教文化服务;学校;高等院校  \n",
       "5       科教文化服务;科教文化场所;科教文化场所  \n",
       "6             科教文化服务;图书馆;图书馆  \n",
       "7       科教文化服务;科教文化场所;科教文化场所  \n",
       "8       科教文化服务;科教文化场所;科教文化场所  \n",
       "9       科教文化服务;科教文化场所;科教文化场所  \n",
       "10            科教文化服务;学校;高等院校  \n",
       "11      科教文化服务;科教文化场所;科教文化场所  \n",
       "12      科教文化服务;科教文化场所;科教文化场所  \n",
       "13      科教文化服务;科教文化场所;科教文化场所  \n",
       "14      科教文化服务;科教文化场所;科教文化场所  \n",
       "15             商务住宅;住宅区;住宅小区  \n",
       "16            科教文化服务;学校;高等院校  \n",
       "17               商务住宅;住宅区;宿舍  \n",
       "18      科教文化服务;科教文化场所;科教文化场所  \n",
       "19      科教文化服务;科教文化场所;科教文化场所  \n",
       "20      科教文化服务;科教文化场所;科教文化场所  \n",
       "21      科教文化服务;科教文化场所;科教文化场所  \n",
       "22            风景名胜;风景名胜;风景名胜  \n",
       "23               商务住宅;住宅区;宿舍  \n",
       "24  医疗保健服务;医疗保健服务场所;医疗保健服务场所  \n",
       "25        住宿服务;住宿服务相关;住宿服务相关  \n",
       "26              餐饮服务;中餐厅;中餐厅  \n",
       "27             商务住宅;住宅区;住宅小区  \n",
       "28        商务住宅;商务住宅相关;商务住宅相关  \n",
       "29               商务住宅;住宅区;宿舍  "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['regeocode']['pois'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备：\n",
    "origin = \"广东省广州市中山大学南方学院\"\n",
    "destination = \"广东省广州市天河区天河体育中心\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geocode(key,address,city=None,batch=None)->str:\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"address\":address,\n",
    "        \"city\":city,\n",
    "        \"batch\":batch\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()['geocodes'][0]['location']\n",
    "    # 返回值\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on function geocode in module __main__:\n",
      "\n",
      "geocode(key, address, city=None, batch=None) -> str\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(geocode)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_中大南方 = geocode(lin_key,origin)\n",
    "起始点_中大南方"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.325062,23.137464'"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "目的地_天体 = geocode(xu_key,destination)\n",
    "目的地_天体"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/direction/walking?parameters\"\n",
    "params = {\n",
    "    \"key\":lin_key,\n",
    "    \"origin\":起始点_中大南方,\n",
    "    \"destination\":目的地_天体\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': '76515',\n",
       "  'duration': '61212',\n",
       "  'steps': [{'instruction': '向东步行101米右转',\n",
       "    'orientation': '东',\n",
       "    'road': [],\n",
       "    'distance': '101',\n",
       "    'duration': '81',\n",
       "    'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行199米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '199',\n",
       "    'duration': '159',\n",
       "    'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西步行159米左转',\n",
       "    'orientation': '西',\n",
       "    'road': [],\n",
       "    'distance': '159',\n",
       "    'duration': '127',\n",
       "    'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行237米左转',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '237',\n",
       "    'duration': '190',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行498米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '498',\n",
       "    'duration': '398',\n",
       "    'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西南步行722米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': [],\n",
       "    'distance': '722',\n",
       "    'duration': '578',\n",
       "    'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向东南步行412米向右前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': [],\n",
       "    'distance': '412',\n",
       "    'duration': '330',\n",
       "    'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向南步行1381米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '1381',\n",
       "    'duration': '1105',\n",
       "    'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向西南步行165米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '165',\n",
       "    'duration': '132',\n",
       "    'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿934县道向西步行118米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '934县道',\n",
       "    'distance': '118',\n",
       "    'duration': '94',\n",
       "    'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '674',\n",
       "    'duration': '539',\n",
       "    'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行247米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '247',\n",
       "    'duration': '198',\n",
       "    'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园西路向西南步行2775米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园西路',\n",
       "    'distance': '2775',\n",
       "    'duration': '2220',\n",
       "    'polyline': '113.667943,23.600412;113.667331,23.600139;113.667331,23.600139;113.666224,23.599644;113.665955,23.599505;113.665955,23.599505;113.665781,23.599362;113.665781,23.599362;113.665521,23.599093;113.665521,23.599093;113.665286,23.598824;113.665286,23.598824;113.665256,23.598785;113.665256,23.598785;113.664796,23.598238;113.664796,23.598238;113.664401,23.597622;113.664401,23.597622;113.664071,23.59714;113.663746,23.59678;113.663746,23.59678;113.663477,23.59651;113.663477,23.59651;113.66224,23.595434;113.66224,23.595434;113.661563,23.594848;113.661563,23.594848;113.661311,23.594605;113.66115,23.594414;113.660907,23.594032;113.660907,23.594032;113.660829,23.593889;113.660729,23.593598;113.660547,23.593025;113.660464,23.592804;113.660464,23.592804;113.659931,23.591593;113.659831,23.591393;113.659631,23.59105;113.659631,23.59105;113.659115,23.59023;113.658824,23.589592;113.658824,23.589592;113.658754,23.589405;113.658754,23.589405;113.657817,23.58714;113.657747,23.586936;113.657695,23.586693;113.657548,23.585369;113.657548,23.585369;113.657483,23.585161;113.657326,23.584896;113.657326,23.584896;113.657114,23.58457;113.657062,23.584453;113.65691,23.583924;113.656884,23.583785;113.656879,23.583681;113.656888,23.583572;113.656979,23.58326;113.657066,23.58303;113.657157,23.582852;113.657378,23.582539;113.657431,23.582444;113.65747,23.582344;113.657483,23.582235;113.657483,23.582109;113.657435,23.580777;113.657405,23.580616;113.657405,23.580616;113.657296,23.580308;113.657244,23.580221;113.656723,23.579644;113.656723,23.579644;113.656597,23.579488;113.656411,23.579362',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿石海工业大道向西南步行1838米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '石海工业大道',\n",
       "    'distance': '1838',\n",
       "    'duration': '1470',\n",
       "    'polyline': '113.656406,23.579358;113.656055,23.57931;113.656055,23.57931;113.655091,23.579089;113.654918,23.579023;113.654566,23.57885;113.654566,23.57885;113.653681,23.578372;113.653681,23.578372;113.653429,23.578247;113.653429,23.578247;113.652713,23.577865;113.652713,23.577865;113.652452,23.577704;113.652001,23.577387;113.652001,23.577387;113.651654,23.577105;113.651654,23.577105;113.651437,23.57694;113.651437,23.57694;113.650681,23.576332;113.650681,23.576332;113.650378,23.576094;113.650378,23.576094;113.649674,23.575534;113.649674,23.575534;113.649583,23.575451;113.649583,23.575451;113.64924,23.575182;113.64924,23.575182;113.647409,23.573754;113.647409,23.573754;113.647279,23.573641;113.646793,23.573155;113.646793,23.573155;113.64661,23.57296;113.64661,23.57296;113.646419,23.572778;113.646419,23.572778;113.646202,23.572565;113.645968,23.57237;113.645252,23.571866;113.645252,23.571866;113.644974,23.571732;113.644974,23.571732;113.644883,23.571706;113.644618,23.571671;113.643967,23.571675;113.643967,23.571675;113.643511,23.57168;113.643511,23.57168;113.64329,23.57168;113.643047,23.571654;113.64293,23.571632;113.642548,23.571502;113.642326,23.571411;113.641979,23.571228;113.641636,23.571003;113.641636,23.571003;113.641437,23.57082',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿政通路向西南步行2161米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '政通路',\n",
       "    'distance': '2161',\n",
       "    'duration': '1729',\n",
       "    'polyline': '113.641432,23.570816;113.641168,23.570525;113.641168,23.570525;113.640964,23.570265;113.640864,23.570156;113.640864,23.570156;113.640651,23.569978;113.640408,23.569822;113.638902,23.569006;113.638902,23.569006;113.638398,23.568746;113.638056,23.568611;113.637695,23.568529;113.637431,23.568507;113.637209,23.568516;113.637209,23.568516;113.636836,23.568576;113.636836,23.568576;113.636484,23.568676;113.636484,23.568676;113.635334,23.569058;113.633754,23.569614;113.633485,23.569674;113.633251,23.569692;113.633251,23.569692;113.633069,23.569688;113.633069,23.569688;113.632778,23.569635;113.632378,23.569492;113.631992,23.569319;113.631853,23.569223;113.631801,23.569158;113.631701,23.568997;113.631441,23.568338;113.631441,23.568338;113.63128,23.567947;113.63128,23.567947;113.63122,23.567834;113.631089,23.567656;113.630946,23.567526;113.630768,23.567387;113.630768,23.567387;113.630456,23.567157;113.630456,23.567157;113.630113,23.566884;113.630113,23.566884;113.629596,23.566458;113.629063,23.565799;113.628359,23.565174;113.62826,23.565026;113.62806,23.564592;113.627665,23.56395;113.627574,23.563815;113.627413,23.56365;113.626576,23.563003;113.626254,23.562804;113.625964,23.562682;113.624987,23.562365',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿灌村路向西步行781米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '灌村路',\n",
       "    'distance': '781',\n",
       "    'duration': '625',\n",
       "    'polyline': '113.624983,23.562361;113.624431,23.562183;113.62349,23.56191;113.623216,23.561771;113.623003,23.561593;113.622661,23.561185;113.622049,23.560525;113.621936,23.560421;113.621775,23.560317;113.621515,23.560226;113.620226,23.559926;113.619579,23.559761;113.619427,23.559744;113.619427,23.559744;113.619188,23.559731;113.619188,23.559731;113.618555,23.559796;113.618355,23.559839;113.618251,23.559887',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向西南步行1582米',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1582',\n",
       "    'duration': '1266',\n",
       "    'polyline': '113.618247,23.559887;113.617626,23.559271;113.617626,23.559271;113.615794,23.557474;113.615794,23.557474;113.615213,23.556905;113.615213,23.556905;113.614818,23.556515;113.614818,23.556515;113.614093,23.55579;113.614093,23.55579;113.613832,23.55549;113.613832,23.55549;113.613628,23.555217;113.613628,23.555217;113.613429,23.554926;113.613429,23.554926;113.613138,23.554418;113.612778,23.553516;113.612778,23.553516;113.612756,23.553442;113.612756,23.553442;113.612682,23.553251;113.612682,23.553251;113.612656,23.553181;113.612656,23.553181;113.612344,23.552339;113.612344,23.552339;113.612192,23.551949;113.612192,23.551949;113.61207,23.551658;113.611888,23.551354;113.611606,23.550968;113.611476,23.550812;113.611246,23.550577;113.610551,23.55;113.610551,23.55;113.610065,23.549609;113.610065,23.549609;113.609514,23.549162;113.609514,23.549162;113.609071,23.548746;113.609071,23.548746;113.608971,23.548641',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向南步行1626米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1626',\n",
       "    'duration': '1301',\n",
       "    'polyline': '113.608967,23.548637;113.608707,23.548247;113.608537,23.547921;113.608537,23.547921;113.608416,23.547526;113.608364,23.547266;113.608364,23.547266;113.608333,23.54697;113.608333,23.54697;113.608264,23.546155;113.608264,23.546155;113.608225,23.545664;113.608216,23.545061;113.608273,23.544501;113.608333,23.54418;113.608333,23.54418;113.608359,23.544054;113.608359,23.544054;113.60849,23.54342;113.60849,23.54342;113.608533,23.543199;113.608533,23.543199;113.608906,23.541484;113.608906,23.541484;113.609097,23.540564;113.609097,23.540564;113.609297,23.539661;113.609297,23.539661;113.609497,23.538685;113.609557,23.538307;113.609557,23.538307;113.609601,23.537635;113.609601,23.537635;113.609601,23.537166;113.609553,23.536536;113.609553,23.536536;113.609453,23.535916;113.60928,23.535252;113.608872,23.534223',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿从樟一路向西步行14米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '从樟一路',\n",
       "    'distance': '14',\n",
       "    'duration': '11',\n",
       "    'polyline': '113.608867,23.534219;113.608737,23.534223',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向西南步行1098米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1098',\n",
       "    'duration': '878',\n",
       "    'polyline': '113.608733,23.534223;113.608242,23.53299;113.608242,23.53299;113.608012,23.532448;113.608012,23.532448;113.607799,23.531914;113.607799,23.531914;113.607682,23.531628;113.607682,23.531628;113.607248,23.530551;113.607248,23.530551;113.606988,23.529931;113.606988,23.529931;113.606866,23.529688;113.606866,23.529688;113.606645,23.529345;113.606484,23.529145;113.606484,23.529145;113.606385,23.529032;113.606385,23.529032;113.606128,23.52878;113.605898,23.528581;113.605898,23.528581;113.604952,23.527786;113.604952,23.527786;113.604388,23.527331;113.604388,23.527331;113.603563,23.526636;113.603563,23.526636;113.60329,23.526636;113.60329,23.526636;113.603199,23.526636;113.603199,23.526636;113.603194,23.526641;113.603207,23.526484;113.603207,23.526484;113.603216,23.526311;113.603216,23.526311;113.603142,23.526233',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行24米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '24',\n",
       "    'duration': '19',\n",
       "    'polyline': '113.603138,23.526228;113.602908,23.526289',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿环市东路步行79米向右前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '环市东路',\n",
       "    'distance': '79',\n",
       "    'duration': '63',\n",
       "    'polyline': '113.602904,23.526289;113.602886,23.526141;113.602769,23.525777;113.602769,23.525777;113.602656,23.525621',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿从城大道步行52米左转',\n",
       "    'orientation': [],\n",
       "    'road': '从城大道',\n",
       "    'distance': '52',\n",
       "    'duration': '42',\n",
       "    'polyline': '113.602652,23.525616;113.602448,23.52549;113.602244,23.525399;113.602244,23.525399;113.602205,23.525391',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行31米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '31',\n",
       "    'duration': '25',\n",
       "    'polyline': '113.602201,23.525386;113.60227,23.525109',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿环市东路向西南步行21米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '21',\n",
       "    'duration': '17',\n",
       "    'polyline': '113.60227,23.525104;113.602153,23.524944',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行39米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '39',\n",
       "    'duration': '31',\n",
       "    'polyline': '113.602148,23.524939;113.601771,23.52487',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿从城大道向南步行44米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '从城大道',\n",
       "    'distance': '44',\n",
       "    'duration': '35',\n",
       "    'polyline': '113.601766,23.524865;113.60178,23.524722;113.60178,23.524722;113.60178,23.524457',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西步行1988米',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路',\n",
       "    'distance': '1988',\n",
       "    'duration': '1590',\n",
       "    'polyline': '113.60178,23.524453;113.601602,23.524219;113.601602,23.524219;113.601337,23.523876;113.601189,23.523715;113.601189,23.523715;113.600885,23.523455;113.600634,23.523286;113.600634,23.523286;113.60033,23.523138;113.599961,23.523012;113.599705,23.522951;113.599123,23.522891;113.599123,23.522891;113.597977,23.522799;113.597977,23.522799;113.597179,23.522734;113.597179,23.522734;113.595959,23.522635;113.595959,23.522635;113.595386,23.522595;113.595386,23.522595;113.594813,23.522556;113.594813,23.522556;113.59388,23.522483;113.59388,23.522483;113.593585,23.522457;113.593585,23.522457;113.591866,23.522322;113.591866,23.522322;113.591775,23.522309;113.591775,23.522309;113.591684,23.522305;113.591684,23.522305;113.591107,23.522261;113.590538,23.522174;113.590538,23.522174;113.590052,23.522075;113.590052,23.522075;113.589579,23.521949;113.589579,23.521949;113.589266,23.521845;113.589266,23.521845;113.589167,23.52181;113.589167,23.52181;113.588542,23.521554;113.588108,23.521341;113.588108,23.521341;113.587556,23.521024;113.587292,23.520846;113.58681,23.520482;113.586428,23.520174;113.586428,23.520174;113.586033,23.519852;113.585642,23.519527;113.585642,23.519527;113.584674,23.518733;113.584674,23.518733;113.584536,23.51862;113.584536,23.51862;113.584245,23.518372',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行1641米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '1641',\n",
       "    'duration': '1313',\n",
       "    'polyline': '113.58424,23.518368;113.582973,23.517313;113.582973,23.517313;113.582127,23.516619;113.582127,23.516619;113.581875,23.516393;113.581875,23.516393;113.581749,23.516289;113.581749,23.516289;113.581241,23.515868;113.581241,23.515868;113.580868,23.515551;113.580868,23.515551;113.58069,23.515412;113.58069,23.515412;113.580056,23.514913;113.580056,23.514913;113.579683,23.514666;113.579332,23.514466;113.579102,23.514353;113.579102,23.514353;113.578585,23.514141;113.577014,23.513589;113.577014,23.513589;113.57671,23.513481;113.57671,23.513481;113.576007,23.513234;113.576007,23.513234;113.575386,23.513003;113.574436,23.512595;113.574436,23.512595;113.573963,23.512365;113.573963,23.512365;113.57303,23.511823;113.572405,23.511406;113.572405,23.511406;113.571549,23.510825;113.571549,23.510825;113.57148,23.510773;113.57148,23.510773;113.571228,23.510569;113.570924,23.51026',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行4522米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '4522',\n",
       "    'duration': '3618',\n",
       "    'polyline': '113.57092,23.510256;113.57066,23.509974;113.570421,23.509674;113.570239,23.509418;113.569484,23.50819;113.569484,23.50819;113.569336,23.507934;113.569336,23.507934;113.568741,23.506966;113.568741,23.506966;113.568498,23.506571;113.568498,23.506571;113.567865,23.505543;113.567865,23.505543;113.56753,23.505074;113.56753,23.505074;113.567218,23.504731;113.566897,23.504436;113.566897,23.504436;113.566593,23.504206;113.566133,23.503919;113.56569,23.503707;113.565035,23.503451;113.565035,23.503451;113.563542,23.502873;113.563542,23.502873;113.562318,23.502409;113.562318,23.502409;113.560043,23.501541;113.560043,23.501541;113.559792,23.50145;113.559792,23.50145;113.559466,23.501324;113.559466,23.501324;113.559084,23.501172;113.559084,23.501172;113.55822,23.500846;113.55822,23.500846;113.557804,23.500686;113.557804,23.500686;113.557352,23.500473;113.557352,23.500473;113.557153,23.500365;113.556697,23.500069;113.556376,23.499831;113.555477,23.499058;113.555477,23.499058;113.55523,23.498863;113.55523,23.498863;113.554878,23.498598;113.554878,23.498598;113.554536,23.498381;113.554536,23.498381;113.554119,23.498134;113.554119,23.498134;113.553746,23.497921;113.553746,23.497921;113.552691,23.497357;113.552691,23.497357;113.550378,23.49612;113.550378,23.49612;113.548798,23.49526;113.548798,23.49526;113.548641,23.495178;113.548641,23.495178;113.547365,23.494488;113.546801,23.494223;113.546801,23.494223;113.546298,23.49398;113.546298,23.49398;113.545612,23.493594;113.54549,23.493485;113.54549,23.493485;113.545464,23.493464;113.545464,23.493464;113.545304,23.49332;113.545304,23.49332;113.544918,23.492977;113.544414,23.492574;113.543589,23.491997;113.543589,23.491997;113.542947,23.491532;113.542947,23.491532;113.542339,23.49112;113.54194,23.490933;113.541306,23.49072;113.541306,23.49072;113.541246,23.490699;113.541246,23.490699;113.538919,23.490109;113.538919,23.490109;113.536541,23.489505;113.536541,23.489505;113.53612,23.489401;113.53612,23.489401;113.535508,23.48924;113.535508,23.48924;113.535313,23.489188;113.535313,23.489188;113.534831,23.489062;113.534436,23.488932',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从北路向西南步行337米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从北路',\n",
       "    'distance': '337',\n",
       "    'duration': '270',\n",
       "    'polyline': '113.534431,23.488928;113.533663,23.488628;113.533663,23.488628;113.53316,23.488381;113.53316,23.488381;113.532626,23.488086;113.532626,23.488086;113.532092,23.487734;113.531602,23.487357',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从北路辅路向西南步行369米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从北路辅路',\n",
       "    'distance': '369',\n",
       "    'duration': '295',\n",
       "    'polyline': '113.531597,23.487352;113.531398,23.48727;113.530994,23.486888;113.530994,23.486888;113.530564,23.486415;113.529544,23.48513;113.529544,23.48513;113.529362,23.484887;113.529362,23.484887;113.529297,23.4848',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西南步行343米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '343',\n",
       "    'duration': '274',\n",
       "    'polyline': '113.529297,23.484796;113.529054,23.484492;113.529054,23.484492;113.528368,23.483602;113.528056,23.483225;113.528056,23.483225;113.527704,23.482786;113.527704,23.482786;113.527461,23.48247;113.527422,23.482235',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行268米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '268',\n",
       "    'duration': '214',\n",
       "    'polyline': '113.527418,23.482231;113.526241,23.48069;113.526241,23.48069;113.525911,23.480247',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行885米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '885',\n",
       "    'duration': '708',\n",
       "    'polyline': '113.525907,23.480243;113.525903,23.480243;113.525903,23.480243;113.524952,23.479093;113.524614,23.47875;113.524362,23.47852;113.524067,23.478286;113.524067,23.478286;113.523798,23.478103;113.523455,23.477899;113.522478,23.477357;113.522478,23.477357;113.521037,23.476562;113.521037,23.476562;113.520417,23.476228;113.520417,23.476228;113.519822,23.475951;113.519436,23.475807;113.518954,23.475673',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西步行755米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '755',\n",
       "    'duration': '604',\n",
       "    'polyline': '113.51895,23.475668;113.518589,23.475651;113.518016,23.475477;113.518016,23.475477;113.517548,23.47533;113.517548,23.47533;113.517496,23.475313;113.517496,23.475313;113.517322,23.475252;113.517322,23.475252;113.517122,23.475195;113.517122,23.475195;113.516085,23.474865;113.516085,23.474865;113.515734,23.474761;113.515734,23.474761;113.515551,23.474701;113.515551,23.474701;113.515382,23.474648;113.515382,23.474648;113.515321,23.474627;113.515321,23.474627;113.515056,23.474544;113.515056,23.474544;113.513468,23.474045;113.513468,23.474045;113.512161,23.473655;113.511949,23.473464',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行3128米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '3128',\n",
       "    'duration': '2502',\n",
       "    'polyline': '113.511944,23.473459;113.511285,23.473264;113.511285,23.473264;113.510265,23.472943;113.509523,23.472682;113.508203,23.472122;113.507847,23.471944;113.507847,23.471944;113.50776,23.471901;113.50776,23.471901;113.506823,23.471419;113.506823,23.471419;113.505334,23.470642;113.505334,23.470642;113.504918,23.470417;113.504918,23.470417;113.503503,23.469696;113.503503,23.469696;113.502773,23.469314;113.502773,23.469314;113.501849,23.468832;113.501849,23.468832;113.501076,23.468424;113.500851,23.46829;113.500421,23.467995;113.50013,23.467747;113.50013,23.467747;113.499813,23.467413;113.499544,23.467096;113.499544,23.467096;113.499332,23.46678;113.499093,23.466341;113.499093,23.466341;113.498477,23.465056;113.498477,23.465056;113.498437,23.464965;113.498437,23.464965;113.497543,23.463077;113.497543,23.463077;113.496723,23.461376;113.496554,23.461068;113.496302,23.46069;113.496302,23.46069;113.49615,23.460486;113.49615,23.460486;113.496029,23.460334;113.496029,23.460334;113.495243,23.459384;113.495243,23.459384;113.494883,23.458963;113.494883,23.458963;113.494362,23.458346;113.494362,23.458346;113.49411,23.458034;113.49411,23.458034;113.494019,23.457921;113.494019,23.457921;113.493715,23.457496;113.493715,23.457496;113.493555,23.457261;113.493555,23.457261;113.493411,23.457027;113.493411,23.457027;113.493203,23.456654;113.493008,23.456259;113.492695,23.455512;113.492496,23.454891;113.492188,23.453681',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行1228米向左前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '1228',\n",
       "    'duration': '982',\n",
       "    'polyline': '113.492188,23.453676;113.492083,23.453555;113.491923,23.452882;113.491862,23.452591;113.491862,23.452591;113.491762,23.452144;113.491762,23.452144;113.49174,23.452036;113.49174,23.452036;113.491593,23.451398;113.491593,23.451398;113.491489,23.450955;113.491489,23.450955;113.491328,23.450256;113.491328,23.450256;113.491298,23.450126;113.491298,23.450126;113.491146,23.449401;113.491146,23.449401;113.490747,23.447574;113.490747,23.447574;113.490664,23.447196;113.490664,23.447196;113.490634,23.447049;113.490634,23.447049;113.490495,23.446497;113.490495,23.446497;113.490443,23.446233;113.490443,23.446233;113.490404,23.446094;113.490404,23.446094;113.490152,23.444961;113.490152,23.444961;113.489931,23.443876;113.489931,23.443876;113.489757,23.443073;113.489757,23.443073;113.489688,23.442773',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行19米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '19',\n",
       "    'duration': '15',\n",
       "    'polyline': '113.489683,23.442769;113.489735,23.4426',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行1230米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '1230',\n",
       "    'duration': '984',\n",
       "    'polyline': '113.489735,23.442595;113.489579,23.441823;113.489579,23.441823;113.489475,23.441367;113.489475,23.441367;113.489236,23.440299;113.489236,23.440299;113.489093,23.4398;113.488893,23.439301;113.488893,23.439301;113.488741,23.438967;113.488451,23.438442;113.488095,23.437943;113.487765,23.437556;113.487765,23.437556;113.487496,23.437279;113.487496,23.437279;113.48701,23.436819;113.48701,23.436819;113.486016,23.435851;113.486016,23.435851;113.485729,23.435582;113.485729,23.435582;113.485499,23.435373;113.485499,23.435373;113.485417,23.435282;113.485417,23.435282;113.485148,23.43503;113.485148,23.43503;113.484032,23.434019;113.484032,23.434019;113.483806,23.433815;113.483806,23.433815;113.483537,23.433589;113.483537,23.433589;113.483446,23.433524;113.483446,23.433524;113.483394,23.433485',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西南步行484米右转',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '484',\n",
       "    'duration': '387',\n",
       "    'polyline': '113.48339,23.433481;113.483116,23.433359;113.483116,23.433359;113.482921,23.433255;113.482639,23.433051;113.482639,23.433051;113.482109,23.432613;113.482109,23.432613;113.481463,23.432057;113.481463,23.432057;113.481363,23.431979;113.481363,23.431979;113.480686,23.431367;113.480686,23.431367;113.480564,23.431211;113.480564,23.431211;113.480434,23.431059;113.480434,23.431059;113.480317,23.430916;113.480317,23.430916;113.480052,23.430538;113.480052,23.430538;113.48,23.430456',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿太平西路向西步行26米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '太平西路',\n",
       "    'distance': '26',\n",
       "    'duration': '21',\n",
       "    'polyline': '113.479996,23.430451;113.479748,23.430516',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路步行443米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '443',\n",
       "    'duration': '354',\n",
       "    'polyline': '113.479744,23.430516;113.479826,23.430447;113.479839,23.430308;113.479839,23.430308;113.4798,23.430139;113.4798,23.430139;113.479366,23.429405;113.478785,23.428385;113.478785,23.428385;113.478481,23.427843;113.478481,23.427843;113.478099,23.427201;113.477951,23.426975',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行74米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '74',\n",
       "    'duration': '59',\n",
       "    'polyline': '113.477947,23.42697;113.477726,23.426328',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行332米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '332',\n",
       "    'duration': '266',\n",
       "    'polyline': '113.477721,23.426324;113.477695,23.426259;113.477695,23.426259;113.477595,23.426037;113.476832,23.424761;113.476832,23.424761;113.476345,23.42395;113.476345,23.42395;113.476176,23.423672',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行5184米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '5184',\n",
       "    'duration': '4147',\n",
       "    'polyline': '113.476172,23.423668;113.475825,23.42309;113.475825,23.42309;113.475681,23.422843;113.475681,23.422843;113.475321,23.422248;113.475321,23.422248;113.47497,23.421667;113.47497,23.421667;113.474826,23.421419;113.474826,23.421419;113.474618,23.421089;113.474618,23.421089;113.474284,23.420525;113.474284,23.420525;113.47395,23.419957;113.47395,23.419957;113.473741,23.419701;113.473741,23.419701;113.473633,23.419579;113.473633,23.419579;113.47342,23.419319;113.47342,23.419319;113.47329,23.419167;113.47329,23.419167;113.473255,23.419132;113.473255,23.419132;113.472977,23.418832;113.472977,23.418832;113.472886,23.418741;113.472886,23.418741;113.472565,23.418451;113.472565,23.418451;113.471033,23.417179;113.47049,23.416758;113.469935,23.416293;113.468563,23.415109;113.467409,23.414128;113.467409,23.414128;113.466562,23.413438;113.466562,23.413438;113.466259,23.413181;113.466259,23.413181;113.465577,23.412617;113.465577,23.412617;113.464983,23.412096;113.464983,23.412096;113.464501,23.411697;113.464501,23.411697;113.464058,23.411354;113.464058,23.411354;113.463754,23.411111;113.463754,23.411111;113.46342,23.41082;113.46342,23.41082;113.462886,23.410378;113.462886,23.410378;113.461862,23.409527;113.461862,23.409527;113.461619,23.409323;113.461619,23.409323;113.461467,23.409197;113.461467,23.409197;113.460816,23.408646;113.460655,23.408533;113.460655,23.408533;113.459987,23.407704;113.459987,23.407704;113.4599,23.407604;113.4599,23.407604;113.458589,23.405911;113.458589,23.405911;113.457591,23.404709;113.457591,23.404709;113.457292,23.404336;113.457292,23.404336;113.457031,23.404002;113.457031,23.404002;113.456927,23.403863;113.456927,23.403863;113.456523,23.403342;113.456523,23.403342;113.455981,23.402652;113.455981,23.402652;113.455586,23.402096;113.455586,23.402096;113.455395,23.401836;113.455395,23.401836;113.455226,23.401615;113.455226,23.401615;113.455187,23.401563;113.455187,23.401563;113.454891,23.401163;113.454891,23.401163;113.454553,23.400703;113.454553,23.400703;113.454201,23.400208;113.454201,23.400208;113.454049,23.400009;113.454049,23.400009;113.453355,23.398919;113.453355,23.398919;113.452752,23.397973;113.452752,23.397973;113.452691,23.397882;113.452691,23.397882;113.452609,23.397743;113.452609,23.397743;113.452439,23.397452;113.452439,23.397452;113.452027,23.39674;113.452027,23.39674;113.451141,23.395243;113.451141,23.395243;113.450898,23.394835;113.450898,23.394835;113.450417,23.394036;113.450417,23.394036;113.45023,23.393715;113.45023,23.393715;113.449748,23.392925;113.449748,23.392925;113.44944,23.392487;113.449206,23.392187;113.448893,23.39184;113.448594,23.391554;113.448594,23.391554;113.448268,23.391263;113.447869,23.390951;113.447869,23.390951;113.447222,23.390534;113.446879,23.390343;113.446549,23.390187;113.446549,23.390187;113.446055,23.389974;113.446055,23.389974;113.445399,23.389744;113.443164,23.389049',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西南步行942米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '942',\n",
       "    'duration': '754',\n",
       "    'polyline': '113.44316,23.389045;113.442773,23.388989;113.442773,23.388989;113.442439,23.388902;113.441944,23.388741;113.440898,23.388268;113.440898,23.388268;113.440135,23.387899;113.440135,23.387899;113.439358,23.387535;113.439358,23.387535;113.438663,23.387187;113.438663,23.387187;113.437691,23.386714;113.437691,23.386714;113.436128,23.385964;113.435595,23.38569;113.435595,23.38569;113.435109,23.385438;113.434931,23.38526',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西步行2042米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路',\n",
       "    'distance': '2042',\n",
       "    'duration': '1634',\n",
       "    'polyline': '113.434926,23.385256;113.434479,23.385078;113.434479,23.385078;113.434062,23.384944;113.43372,23.384852;113.43372,23.384852;113.433472,23.384809;113.433472,23.384809;113.432969,23.384744;113.432969,23.384744;113.432682,23.384731;113.432682,23.384731;113.4323,23.384718;113.4323,23.384718;113.432018,23.384714;113.432018,23.384714;113.431276,23.384692;113.431276,23.384692;113.430742,23.384679;113.430742,23.384679;113.430269,23.38467;113.430269,23.38467;113.429514,23.384657;113.429514,23.384657;113.428898,23.384644;113.428898,23.384644;113.428589,23.38464;113.428589,23.38464;113.427643,23.384614;113.427643,23.384614;113.427348,23.384609;113.427348,23.384609;113.427079,23.384605;113.427079,23.384605;113.426914,23.384605;113.426914,23.384605;113.426745,23.384601;113.426745,23.384601;113.426393,23.384588;113.426393,23.384588;113.426241,23.384588;113.426241,23.384588;113.425981,23.384583;113.425981,23.384583;113.425417,23.384566;113.425417,23.384566;113.425152,23.384557;113.425152,23.384557;113.424358,23.38451;113.424358,23.38451;113.423924,23.384453;113.423924,23.384453;113.423168,23.38431;113.423168,23.38431;113.423043,23.384284;113.423043,23.384284;113.422717,23.384201;113.422717,23.384201;113.422305,23.384102;113.422305,23.384102;113.421593,23.383906;113.421593,23.383906;113.420582,23.383633;113.420582,23.383633;113.419666,23.383381;113.419666,23.383381;113.418498,23.383069;113.418498,23.383069;113.418108,23.382964;113.418108,23.382964;113.417964,23.382921;113.417964,23.382921;113.416988,23.382652;113.416988,23.382652;113.41671,23.382582;113.41671,23.382582;113.416467,23.382517;113.416467,23.382517;113.415972,23.382383;113.415972,23.382383;113.4152,23.382174',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西步行906米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '906',\n",
       "    'duration': '725',\n",
       "    'polyline': '113.415195,23.38217;113.415035,23.382179;113.414913,23.382157;113.414913,23.382157;113.414796,23.382131;113.414796,23.382131;113.411363,23.381237;113.411363,23.381237;113.410998,23.381146;113.410998,23.381146;113.410347,23.380964;113.410347,23.380964;113.410143,23.380903;113.410143,23.380903;113.408555,23.380464;113.407001,23.380009;113.407001,23.380009;113.406832,23.379961;113.406688,23.379857',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行539米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '539',\n",
       "    'duration': '431',\n",
       "    'polyline': '113.406684,23.379852;113.405877,23.379492;113.405877,23.379492;113.405208,23.379154;113.405208,23.379154;113.404809,23.378937;113.404809,23.378937;113.404596,23.378815;113.404596,23.378815;113.404123,23.378529;113.403741,23.378264;113.403741,23.378264;113.403607,23.378173;113.403607,23.378173;113.403316,23.377977;113.403316,23.377977;113.403086,23.377799;113.402313,23.377131',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西南步行987米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '987',\n",
       "    'duration': '790',\n",
       "    'polyline': '113.402309,23.377127;113.402131,23.377092;113.402001,23.377001;113.401033,23.376141;113.401033,23.376141;113.400742,23.375898;113.400742,23.375898;113.400599,23.375777;113.400599,23.375777;113.400582,23.37576;113.400582,23.37576;113.399349,23.374722;113.399349,23.374722;113.398837,23.374306;113.398837,23.374306;113.398342,23.373876;113.398342,23.373876;113.398164,23.373728;113.398164,23.373728;113.398103,23.373672;113.398103,23.373672;113.397496,23.373125;113.397496,23.373125;113.397127,23.372795;113.397127,23.372795;113.396389,23.372148;113.396389,23.372148;113.395447,23.371306;113.395395,23.37125;113.395234,23.371016',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行4359米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '4359',\n",
       "    'duration': '3487',\n",
       "    'polyline': '113.39523,23.371011;113.394861,23.370673;113.394861,23.370673;113.394154,23.370069;113.394154,23.370069;113.393976,23.369918;113.393976,23.369918;113.393511,23.369514;113.393511,23.369514;113.392956,23.369049;113.392956,23.369049;113.392062,23.368299;113.391541,23.367899;113.391541,23.367899;113.391046,23.367565;113.391046,23.367565;113.390499,23.367231;113.390499,23.367231;113.390217,23.36707;113.390217,23.36707;113.38865,23.366285;113.38865,23.366285;113.387804,23.365868;113.387804,23.365868;113.385668,23.364822;113.385668,23.364822;113.385417,23.364701;113.385417,23.364701;113.385082,23.364531;113.385082,23.364531;113.384761,23.364371;113.384761,23.364371;113.383867,23.363945;113.383867,23.363945;113.383411,23.363728;113.383411,23.363728;113.38306,23.363533;113.382678,23.363346;113.382678,23.363346;113.382188,23.363099;113.382188,23.363099;113.381975,23.362999;113.381975,23.362999;113.381649,23.362839;113.381649,23.362839;113.381502,23.362765;113.381502,23.362765;113.381441,23.362734;113.381441,23.362734;113.381068,23.362552;113.381068,23.362552;113.380534,23.362283;113.380534,23.362283;113.38013,23.362079;113.38013,23.362079;113.379115,23.361532;113.379115,23.361532;113.377648,23.360621;113.375946,23.359505;113.37556,23.359214;113.375139,23.358889;113.374744,23.358533;113.372995,23.356918;113.372995,23.356918;113.37263,23.356545;113.37263,23.356545;113.3725,23.356415;113.3725,23.356415;113.372196,23.356102;113.372196,23.356102;113.371888,23.355751;113.371888,23.355751;113.371602,23.355347;113.371354,23.354939;113.371233,23.354701;113.371233,23.354701;113.371128,23.354501;113.371128,23.354501;113.37099,23.354236;113.37099,23.354236;113.370842,23.353919;113.370842,23.353919;113.37066,23.353529;113.37066,23.353529;113.370295,23.352791;113.370295,23.352791;113.370126,23.352391;113.370126,23.352391;113.369874,23.351892;113.369492,23.351059;113.369492,23.351059;113.369327,23.350716;113.369327,23.350716;113.368793,23.349609;113.368793,23.349609;113.368273,23.348568;113.368273,23.348568;113.368112,23.348268;113.36773,23.347656;113.367548,23.347339;113.367548,23.347339;113.367444,23.347114;113.367335,23.346788;113.367335,23.346788;113.367253,23.346337;113.367253,23.346337;113.367153,23.34572;113.367066,23.345326;113.367066,23.345326;113.366962,23.344857;113.366962,23.344857;113.366832,23.344293;113.366832,23.344293;113.36678,23.344071;113.36678,23.344071;113.366732,23.343902;113.366732,23.343902;113.36671,23.343811',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从四路向南步行1950米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从四路',\n",
       "    'distance': '1950',\n",
       "    'duration': '1560',\n",
       "    'polyline': '113.366706,23.343806;113.366558,23.343242;113.366237,23.342214;113.366237,23.342214;113.366068,23.341662;113.366068,23.341662;113.365846,23.340998;113.365846,23.340998;113.365625,23.340226;113.365625,23.340226;113.365603,23.340139;113.365603,23.340139;113.365421,23.339592;113.365421,23.339592;113.365078,23.338503;113.365078,23.338503;113.364831,23.337856;113.364831,23.337856;113.364818,23.337812;113.364818,23.337812;113.364544,23.33714;113.364544,23.33714;113.364206,23.336359;113.364206,23.336359;113.363902,23.335703;113.363902,23.335703;113.363542,23.334922;113.363542,23.334922;113.363503,23.334861;113.363207,23.334227;113.363207,23.334227;113.362856,23.333433;113.362856,23.333433;113.362552,23.332704;113.362405,23.332296;113.362405,23.332296;113.362292,23.331931;113.362292,23.331931;113.362183,23.331606;113.362183,23.331606;113.362148,23.331476;113.362148,23.331476;113.361988,23.330868;113.361988,23.330868;113.361949,23.330712;113.361949,23.330712;113.361827,23.330195;113.361827,23.330195;113.361398,23.328316;113.361398,23.328316;113.361324,23.327925;113.361324,23.327925;113.361076,23.326927',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向南步行231米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '231',\n",
       "    'duration': '185',\n",
       "    'polyline': '113.361072,23.326923;113.360964,23.326432;113.360964,23.326432;113.360773,23.325807;113.360629,23.325417;113.360629,23.325417;113.36049,23.325117;113.36049,23.325117;113.360399,23.324913',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行202米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '202',\n",
       "    'duration': '162',\n",
       "    'polyline': '113.360395,23.324909;113.359957,23.324479;113.359796,23.324154;113.359796,23.324154;113.359635,23.323798;113.359622,23.323724;113.359605,23.323611;113.359679,23.323316',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大罗罗窑路向东步行11米右转',\n",
       "    'orientation': '东',\n",
       "    'road': '大罗罗窑路',\n",
       "    'distance': '11',\n",
       "    'duration': '9',\n",
       "    'polyline': '113.359679,23.323312;113.359783,23.323294',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路向南步行1329米向左前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从三路',\n",
       "    'distance': '1329',\n",
       "    'duration': '1063',\n",
       "    'polyline': '113.359783,23.32329;113.359188,23.321949;113.359188,23.321949;113.358989,23.321489;113.358989,23.321489;113.358559,23.320356;113.358559,23.320356;113.358485,23.320161;113.358485,23.320161;113.358424,23.319974;113.358424,23.319974;113.358186,23.31931;113.358186,23.31931;113.357934,23.318624;113.357934,23.318624;113.357721,23.318034;113.357721,23.318034;113.357708,23.317969;113.357708,23.317969;113.357639,23.317778;113.357639,23.317778;113.357552,23.317539;113.357552,23.317539;113.3574,23.317118;113.3574,23.317118;113.357296,23.316827;113.357296,23.316827;113.356897,23.315725;113.356554,23.314831;113.356554,23.314831;113.356089,23.313468;113.356089,23.313468;113.355629,23.312218;113.355547,23.311888',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路辅路向南步行713米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从三路辅路',\n",
       "    'distance': '713',\n",
       "    'duration': '570',\n",
       "    'polyline': '113.355543,23.311884;113.355573,23.311714;113.355556,23.311636;113.355556,23.311636;113.355408,23.311263;113.355408,23.311263;113.355343,23.311098;113.355343,23.311098;113.355265,23.310916;113.355265,23.310916;113.355226,23.310803;113.355226,23.310803;113.355061,23.310382;113.355061,23.310382;113.354349,23.308598;113.354349,23.308598;113.353876,23.307365;113.353641,23.306849;113.353641,23.306849;113.353602,23.306758;113.353602,23.306758;113.353411,23.306263;113.353351,23.306189;113.353351,23.306189;113.353199,23.306029;113.353199,23.306029;113.35306,23.305877',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路向西南步行72米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从三路',\n",
       "    'distance': '72',\n",
       "    'duration': '58',\n",
       "    'polyline': '113.353056,23.305872;113.352886,23.305573;113.352886,23.305573;113.35273,23.305299',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿太和北路向南步行1227米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '太和北路',\n",
       "    'distance': '1227',\n",
       "    'duration': '982',\n",
       "    'polyline': '113.352726,23.305295;113.352765,23.305113;113.352765,23.304944;113.352665,23.304023;113.352665,23.304023;113.352604,23.303607;113.352604,23.303607;113.352595,23.303329;113.352595,23.303329;113.352635,23.302986;113.352635,23.302986;113.352721,23.302509;113.352721,23.302509;113.352912,23.301576;113.352912,23.301576;113.353116,23.300603;113.353116,23.300603;113.353134,23.300516;113.353134,23.300516;113.353164,23.300334;113.353164,23.300334;113.353377,23.299219;113.353377,23.299219;113.353437,23.298993;113.353559,23.298385;113.353559,23.298385;113.353841,23.296944;113.353841,23.296944;113.353954,23.296393;113.353954,23.296393;113.35398,23.296254;113.35398,23.296254;113.354032,23.295985;113.354032,23.295985;113.354093,23.295707;113.354093,23.295707;113.354115,23.295603;113.354115,23.295603;113.354214,23.29526;113.354214,23.29526;113.354336,23.29497;113.354336,23.29497;113.354427,23.294796;113.354427,23.294796;113.354657,23.294479;113.354657,23.294479;113.354709,23.294414',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿太和中路向东南步行632米向右前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': '太和中路',\n",
       "    'distance': '632',\n",
       "    'duration': '506',\n",
       "    'polyline': '113.354709,23.29441;113.354787,23.294323;113.354787,23.294323;113.354857,23.294227;113.354857,23.294227;113.355061,23.294015;113.355061,23.294015;113.355221,23.293854;113.355221,23.293854;113.355946,23.293151;113.355946,23.293151;113.356094,23.293016;113.356094,23.293016;113.35635,23.29276;113.35635,23.29276;113.356437,23.292674;113.356437,23.292674;113.356732,23.292391;113.356732,23.292391;113.356819,23.292318;113.356819,23.292318;113.357214,23.291931;113.357214,23.291931;113.357435,23.291693;113.357435,23.291693;113.357808,23.291159;113.357977,23.290885;113.357977,23.290885;113.358021,23.290799;113.358021,23.290799;113.358364,23.290139;113.358459,23.289852',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿太和南路向南步行526米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '太和南路',\n",
       "    'distance': '526',\n",
       "    'duration': '421',\n",
       "    'polyline': '113.358459,23.289848;113.358503,23.289536;113.358503,23.289536;113.358511,23.28921;113.358477,23.28885;113.358477,23.28885;113.358424,23.288464;113.358424,23.288464;113.358407,23.28819;113.358407,23.28819;113.358398,23.287995;113.358411,23.287826;113.358411,23.287826;113.358433,23.28773;113.358433,23.28773;113.358459,23.287622;113.358459,23.287622;113.358681,23.286845;113.358681,23.286845;113.358746,23.28658;113.358746,23.28658;113.358837,23.286285;113.358837,23.286285;113.358915,23.286029;113.358915,23.286029;113.359036,23.285621;113.359036,23.285621;113.359188,23.285161',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿上南路向南步行377米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '上南路',\n",
       "    'distance': '377',\n",
       "    'duration': '302',\n",
       "    'polyline': '113.359188,23.285156;113.359375,23.284596;113.359375,23.284596;113.359648,23.283737;113.359648,23.283737;113.359861,23.283016;113.359931,23.282713;113.359974,23.282461;113.359974,23.282205;113.359957,23.281845',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿上南路向西南步行772米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '上南路',\n",
       "    'distance': '772',\n",
       "    'duration': '618',\n",
       "    'polyline': '113.359952,23.28184;113.359848,23.281536;113.359813,23.281454;113.359813,23.281454;113.359653,23.281141;113.359653,23.281141;113.359345,23.280664;113.359345,23.280664;113.35911,23.280473;113.35911,23.280473;113.358698,23.280135;113.358698,23.280135;113.358264,23.279779;113.358264,23.279779;113.358255,23.27977;113.358255,23.27977;113.358181,23.279709;113.358181,23.279709;113.357895,23.27947;113.357895,23.27947;113.357522,23.279115;113.35727,23.278811;113.35727,23.278811;113.357127,23.278594;113.357127,23.278594;113.356905,23.27819;113.356797,23.277891;113.356797,23.277891;113.356545,23.27704;113.356545,23.27704;113.356471,23.276749;113.356471,23.276749;113.356241,23.275916',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源北路向南步行24米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '大源北路',\n",
       "    'distance': '24',\n",
       "    'duration': '19',\n",
       "    'polyline': '113.356237,23.275911;113.356189,23.275699',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿上南路向南步行71米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '上南路',\n",
       "    'distance': '71',\n",
       "    'duration': '57',\n",
       "    'polyline': '113.356185,23.275694;113.356059,23.275321;113.356059,23.275321;113.355951,23.275087',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源北路向南步行2944米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '大源北路',\n",
       "    'distance': '2944',\n",
       "    'duration': '2355',\n",
       "    'polyline': '113.355946,23.275082;113.35579,23.274753;113.355356,23.274045;113.355356,23.274045;113.355156,23.273733;113.355156,23.273733;113.354379,23.272504;113.354379,23.272504;113.354128,23.272109;113.354128,23.272109;113.353351,23.270903;113.353351,23.270903;113.353242,23.270734;113.353242,23.270734;113.352565,23.269653;113.352565,23.269653;113.352478,23.269518;113.352478,23.269518;113.352305,23.269197;113.352305,23.269197;113.352161,23.268802;113.352101,23.268568;113.352083,23.268481;113.352083,23.268481;113.35207,23.268112;113.352096,23.267839;113.352157,23.267569;113.352283,23.267235;113.352283,23.267235;113.352452,23.266953;113.352582,23.266766;113.352582,23.266766;113.352721,23.26661;113.352721,23.26661;113.353016,23.266359;113.353016,23.266359;113.353429,23.266072;113.353429,23.266072;113.35388,23.26579;113.35388,23.26579;113.354141,23.265625;113.354141,23.265625;113.35487,23.265169;113.35487,23.265169;113.355725,23.26464;113.356037,23.264436;113.356328,23.264227;113.356328,23.264227;113.356528,23.264067;113.35678,23.263837;113.35678,23.263837;113.356832,23.263776;113.356832,23.263776;113.357201,23.263368;113.357201,23.263368;113.357422,23.263069;113.357674,23.26263;113.357674,23.26263;113.35803,23.261866;113.358329,23.261189;113.358329,23.261189;113.358451,23.260816;113.358503,23.260538;113.35852,23.260382;113.35852,23.260382;113.358516,23.260087;113.358498,23.259957;113.358433,23.259653;113.358294,23.259301;113.358194,23.259106;113.358194,23.259106;113.357865,23.258594;113.357865,23.258594;113.357613,23.258238;113.357613,23.258238;113.357461,23.258016;113.357461,23.258016;113.357196,23.257643;113.357196,23.257643;113.357057,23.257448;113.357057,23.257448;113.356927,23.257274;113.356927,23.257274;113.356884,23.257201;113.356884,23.257201;113.356228,23.256194;113.356228,23.256194;113.355625,23.255217;113.355625,23.255217;113.355608,23.255187;113.355608,23.255187;113.355447,23.254948;113.355447,23.254948;113.354579,23.25365;113.354579,23.25365;113.354058,23.252869',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源中路向西南步行1125米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '大源中路',\n",
       "    'distance': '1125',\n",
       "    'duration': '900',\n",
       "    'polyline': '113.354054,23.252865;113.353737,23.252409;113.353303,23.251845;113.353303,23.251845;113.353008,23.251484;113.353008,23.251484;113.352726,23.251133;113.352726,23.251133;113.352695,23.251094;113.352695,23.251094;113.352648,23.251042;113.352648,23.251042;113.352587,23.250964;113.352587,23.250964;113.352548,23.250916;113.352548,23.250916;113.352283,23.250586;113.352283,23.250586;113.351649,23.249831;113.351649,23.249831;113.351189,23.249266;113.351189,23.249266;113.350842,23.248841;113.350842,23.248841;113.350803,23.248802;113.350803,23.248802;113.350734,23.248715;113.350734,23.248715;113.35033,23.248225;113.35033,23.248225;113.350273,23.248151;113.350273,23.248151;113.349735,23.247496;113.349735,23.247496;113.349627,23.247357;113.349627,23.247357;113.349336,23.246966;113.349336,23.246966;113.349245,23.246836;113.349245,23.246836;113.349093,23.24661;113.349093,23.24661;113.348911,23.24628;113.348641,23.245716;113.348641,23.245716;113.348459,23.245204;113.348407,23.245;113.348407,23.245;113.348359,23.244822;113.348359,23.244822;113.34832,23.244653;113.34832,23.244653;113.348225,23.244266',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源南路向南步行38米左转',\n",
       "    'orientation': '南',\n",
       "    'road': '大源南路',\n",
       "    'distance': '38',\n",
       "    'duration': '30',\n",
       "    'polyline': '113.34822,23.244262;113.348125,23.243928',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源南路向东南步行15米向右前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': '大源南路',\n",
       "    'distance': '15',\n",
       "    'duration': '12',\n",
       "    'polyline': '113.348121,23.243924;113.348234,23.243828',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大源南路向南步行2794米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '大源南路',\n",
       "    'distance': '2794',\n",
       "    'duration': '2235',\n",
       "    'polyline': '113.348234,23.243824;113.348316,23.242674;113.348555,23.241671;113.348555,23.241671;113.348576,23.241567;113.348576,23.241567;113.348685,23.241163;113.348685,23.241163;113.348728,23.240994;113.348728,23.240994;113.348789,23.240747;113.348789,23.240747;113.349028,23.239796;113.349028,23.239796;113.34921,23.239084;113.34921,23.239084;113.34931,23.238763;113.349379,23.238585;113.349714,23.237834;113.349714,23.237834;113.350295,23.23651;113.350438,23.236098;113.350516,23.235712;113.350516,23.235712;113.350521,23.235655;113.350521,23.235655;113.350547,23.235373;113.350547,23.235187;113.350495,23.234436;113.350495,23.234436;113.350473,23.234175;113.350473,23.234175;113.350451,23.233941;113.350391,23.233689;113.350299,23.233416;113.350239,23.233264;113.350239,23.233264;113.350009,23.232856;113.350009,23.232856;113.349931,23.232739;113.349931,23.232739;113.349666,23.232409;113.349397,23.23214;113.348889,23.231723;113.348338,23.231302;113.348338,23.231302;113.347956,23.231007;113.347956,23.231007;113.347695,23.230768;113.346897,23.229848;113.346897,23.229848;113.346293,23.229141;113.346293,23.229141;113.345508,23.228203;113.345508,23.228203;113.345286,23.227912;113.345056,23.227539;113.345056,23.227539;113.344896,23.227187;113.344744,23.226801;113.344744,23.226801;113.344644,23.226424;113.34454,23.225829;113.344514,23.225595;113.344514,23.225595;113.344514,23.225543;113.344514,23.225543;113.344527,23.225174;113.344579,23.224722;113.344631,23.224423;113.344688,23.224249;113.344688,23.224249;113.344761,23.224023;113.344761,23.224023;113.344883,23.223628;113.344883,23.223628;113.344961,23.223429;113.344961,23.223429;113.345113,23.223099;113.345221,23.222895;113.345703,23.222196;113.345703,23.222196;113.346181,23.221541;113.34628,23.221337;113.34635,23.221094',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太北路向南步行4649米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '沙太北路',\n",
       "    'distance': '4649',\n",
       "    'duration': '3719',\n",
       "    'polyline': '113.34635,23.221089;113.346584,23.219779;113.346923,23.217804;113.346923,23.217804;113.347014,23.21717;113.34701,23.216766;113.346727,23.214831;113.346645,23.21444;113.346497,23.213963;113.346176,23.21319;113.34602,23.212865;113.34602,23.212865;113.345768,23.212357;113.345369,23.211502;113.345369,23.211502;113.34309,23.20658;113.34309,23.20658;113.342773,23.205933;113.342773,23.205933;113.342461,23.205256;113.342461,23.205256;113.342305,23.204922;113.342305,23.204922;113.342088,23.204475;113.342088,23.204475;113.34148,23.203164;113.34148,23.203164;113.340404,23.200859;113.340404,23.200859;113.339497,23.198954;113.339497,23.198954;113.338624,23.197088;113.338624,23.197088;113.338602,23.197027;113.338602,23.197027;113.338312,23.196402;113.338312,23.196402;113.337899,23.195521;113.337695,23.195043;113.337695,23.195043;113.337543,23.194653;113.337543,23.194653;113.337396,23.19428;113.337313,23.193997;113.337235,23.19352;113.337222,23.193173;113.337222,23.193173;113.337222,23.192839;113.337287,23.192313;113.337287,23.192313;113.3373,23.192244;113.3373,23.192244;113.337339,23.192023;113.337339,23.192023;113.337552,23.19089;113.337552,23.19089;113.337569,23.190812;113.337569,23.190812;113.337604,23.190547;113.337604,23.190547;113.337661,23.190226;113.337661,23.190226;113.337674,23.190139;113.337674,23.190139;113.337713,23.189705;113.337713,23.189705;113.337713,23.189449;113.337687,23.189223;113.337687,23.189223;113.337635,23.188971;113.337517,23.188576;113.337517,23.188576;113.337114,23.187504;113.337114,23.187504;113.337083,23.187426;113.337083,23.187426;113.337062,23.187374;113.337062,23.187374;113.33674,23.186519;113.33674,23.186519;113.336528,23.185955;113.336528,23.185955;113.335877,23.184453;113.335877,23.184453;113.335603,23.183876;113.335482,23.183655;113.33533,23.183429;113.335048,23.183095;113.334054,23.182066;113.334054,23.182066;113.333832,23.181771',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太中路向南步行258米左转',\n",
       "    'orientation': '南',\n",
       "    'road': '沙太中路',\n",
       "    'distance': '258',\n",
       "    'duration': '206',\n",
       "    'polyline': '113.333828,23.181766;113.333728,23.181628;113.333728,23.181628;113.333598,23.181398;113.333477,23.181155;113.333477,23.181155;113.333416,23.180998;113.333416,23.180998;113.333294,23.180573;113.333294,23.180573;113.333238,23.180343;113.333238,23.180343;113.333147,23.179978;113.333147,23.179978;113.333108,23.179861;113.333108,23.179861;113.33319,23.179688;113.33319,23.179688;113.33319,23.179679;113.333047,23.179614',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太中路向南步行615米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '沙太中路',\n",
       "    'distance': '615',\n",
       "    'duration': '492',\n",
       "    'polyline': '113.333043,23.179609;113.332895,23.17898;113.332895,23.17898;113.332821,23.178655;113.332821,23.178655;113.332752,23.178351;113.332752,23.178351;113.332713,23.178155;113.332713,23.178155;113.332513,23.177313;113.332513,23.177313;113.332474,23.17717;113.332474,23.17717;113.332409,23.176888;113.332409,23.176888;113.33237,23.176723;113.33237,23.176723;113.332222,23.176059;113.332222,23.176059;113.332049,23.175382;113.332049,23.175382;113.332001,23.175161;113.332001,23.175161;113.331897,23.174744;113.331897,23.174744;113.331845,23.17457;113.331845,23.17457;113.331688,23.174136',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路向西南步行733米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '沙太南路',\n",
       "    'distance': '733',\n",
       "    'duration': '586',\n",
       "    'polyline': '113.331684,23.174132;113.331606,23.173976;113.331606,23.173976;113.331437,23.173694;113.331285,23.17349;113.331285,23.17349;113.33112,23.173264;113.330868,23.172999;113.330868,23.172999;113.330812,23.172951;113.330812,23.172951;113.33076,23.172904;113.33076,23.172904;113.330621,23.172773;113.330621,23.172773;113.330438,23.17263;113.330438,23.17263;113.329987,23.172248;113.329987,23.172248;113.329622,23.171984;113.329622,23.171984;113.32928,23.171688;113.32928,23.171688;113.329136,23.171576;113.329136,23.171576;113.328477,23.171042;113.328477,23.171042;113.32819,23.170816;113.32819,23.170816;113.327739,23.17046;113.327739,23.17046;113.327569,23.170326;113.327569,23.170326;113.327418,23.170195;113.327418,23.170195;113.327348,23.170143;113.327348,23.170143;113.327187,23.169996;113.327187,23.169996;113.327192,23.169783;113.327183,23.169653;113.327183,23.169653;113.326836,23.169588;113.326836,23.169588;113.326771,23.169497',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行37米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '37',\n",
       "    'duration': '30',\n",
       "    'polyline': '113.326766,23.169492;113.326819,23.169167',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿沙河立交桥步行38米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '沙河立交桥',\n",
       "    'distance': '38',\n",
       "    'duration': '30',\n",
       "    'polyline': '113.326819,23.169162;113.326723,23.169132;113.326493,23.168997',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路向西南步行449米',\n",
       "    'orientation': '西南',\n",
       "    'road': '沙太南路',\n",
       "    'distance': '449',\n",
       "    'duration': '359',\n",
       "    'polyline': '113.326489,23.168993;113.326372,23.168715;113.326159,23.168142;113.326159,23.168142;113.326046,23.167834;113.326046,23.167834;113.325959,23.167622;113.325959,23.167622;113.325907,23.167487;113.325907,23.167487;113.325885,23.167418;113.325885,23.167418;113.325764,23.167144;113.325764,23.167144;113.325707,23.167005;113.325707,23.167005;113.325395,23.166263;113.325265,23.166033;113.325013,23.165629;113.325013,23.165629;113.324822,23.165369;113.324822,23.165369;113.324731,23.165256',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路向西南步行266米',\n",
       "    'orientation': '西南',\n",
       "    'road': '沙太南路',\n",
       "    'distance': '266',\n",
       "    'duration': '213',\n",
       "    'polyline': '113.324727,23.165252;113.324618,23.164913;113.324349,23.164518;113.324349,23.164518;113.324327,23.164488;113.324219,23.164431;113.324219,23.164431;113.323984,23.164097;113.323984,23.164097;113.323915,23.163971;113.323915,23.163971;113.323824,23.163828;113.323824,23.163828;113.323681,23.163607;113.323681,23.163607;113.323498,23.163333;113.323498,23.163333;113.323398,23.163194',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路向西南步行372米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '沙太南路',\n",
       "    'distance': '372',\n",
       "    'duration': '298',\n",
       "    'polyline': '113.323394,23.16319;113.323329,23.163043;113.323108,23.162687;113.322305,23.161554;113.322305,23.161554;113.322266,23.161506;113.322266,23.161506;113.322214,23.161424;113.322214,23.161424;113.321832,23.160898;113.321832,23.160898;113.32158,23.160569;113.32158,23.160569;113.32151,23.160473;113.32151,23.160473;113.321467,23.160417;113.321467,23.160417;113.321406,23.160347',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路步行42米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '沙太南路',\n",
       "    'distance': '42',\n",
       "    'duration': '34',\n",
       "    'polyline': '113.321402,23.160343;113.321276,23.160065;113.321276,23.160065;113.321254,23.16',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿沙太南路步行40米直行',\n",
       "    'orientation': [],\n",
       "    'road': '沙太南路',\n",
       "    'distance': '40',\n",
       "    'duration': '32',\n",
       "    'polyline': '113.32125,23.159996;113.321272,23.15987;113.321311,23.159757;113.321311,23.159757;113.321354,23.159644',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿兴华路向东南步行415米右转',\n",
       "    'orientation': '东南',\n",
       "    'road': '兴华路',\n",
       "    'distance': '415',\n",
       "    'duration': '332',\n",
       "    'polyline': '113.321354,23.15964;113.321706,23.15921;113.321706,23.15921;113.321745,23.159154;113.321745,23.159154;113.32217,23.158694;113.32217,23.158694;113.322422,23.158403;113.322552,23.158268;113.322552,23.158268;113.322674,23.158151;113.322674,23.158151;113.322986,23.157878;113.322986,23.157878;113.323316,23.157648;113.323598,23.157487;113.323598,23.157487;113.323932,23.157465;113.323932,23.157465;113.323958,23.157292;113.323958,23.157292;113.32424,23.157135',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿燕岭路向西南步行11米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '燕岭路',\n",
       "    'distance': '11',\n",
       "    'duration': '9',\n",
       "    'polyline': '113.32424,23.157131;113.324154,23.157079',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿禺东西路向西南步行250米',\n",
       "    'orientation': '西南',\n",
       "    'road': '禺东西路',\n",
       "    'distance': '250',\n",
       "    'duration': '200',\n",
       "    'polyline': '113.324149,23.157075;113.323772,23.156853;113.323772,23.156853;113.323451,23.156667;113.323229,23.156515;113.322878,23.15625;113.322604,23.15602;113.322604,23.15602;113.32217,23.155755',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿禺东西路步行79米直行',\n",
       "    'orientation': [],\n",
       "    'road': '禺东西路',\n",
       "    'distance': '79',\n",
       "    'duration': '63',\n",
       "    'polyline': '113.322166,23.155751;113.322101,23.155486;113.322092,23.155352;113.322092,23.155352;113.322109,23.155282;113.322227,23.155069',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广园快速路辅路向东南步行214米向左前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': '广园快速路辅路',\n",
       "    'distance': '214',\n",
       "    'duration': '171',\n",
       "    'polyline': '113.322227,23.155065;113.322357,23.154961;113.322357,23.154961;113.322539,23.154818;113.322539,23.154818;113.323025,23.154444;113.323025,23.154444;113.323498,23.154084;113.323498,23.154084;113.323841,23.153824',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿瘦狗岭路向东南步行165米直行',\n",
       "    'orientation': '东南',\n",
       "    'road': '瘦狗岭路',\n",
       "    'distance': '165',\n",
       "    'duration': '132',\n",
       "    'polyline': '113.323841,23.153819;113.323963,23.15378;113.323963,23.15378;113.324032,23.153754;113.324362,23.153529;113.324362,23.153529;113.324592,23.153377;113.324592,23.153377;113.325056,23.153125;113.325195,23.15299',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广园快速路辅路向东南步行469米直行',\n",
       "    'orientation': '东南',\n",
       "    'road': '广园快速路辅路',\n",
       "    'distance': '469',\n",
       "    'duration': '375',\n",
       "    'polyline': '113.325195,23.152986;113.326146,23.152444;113.326146,23.152444;113.326185,23.152422;113.326185,23.152422;113.326658,23.152157;113.326658,23.152157;113.32678,23.152092;113.32678,23.152092;113.327018,23.15194;113.327018,23.15194;113.327643,23.151489;113.327643,23.151489;113.327934,23.151324;113.327934,23.151324;113.329067,23.150707',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广园快速路出口步行37米直行',\n",
       "    'orientation': [],\n",
       "    'road': '广园快速路出口',\n",
       "    'distance': '37',\n",
       "    'duration': '30',\n",
       "    'polyline': '113.329067,23.150703;113.329258,23.150595;113.329366,23.150508',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广园快速路向东南步行175米',\n",
       "    'orientation': '东南',\n",
       "    'road': '广园快速路',\n",
       "    'distance': '175',\n",
       "    'duration': '140',\n",
       "    'polyline': '113.329366,23.150503;113.329444,23.150469;113.329444,23.150469;113.329536,23.150434;113.329536,23.150434;113.3298,23.150304;113.3298,23.150304;113.329961,23.150234;113.329961,23.150234;113.330273,23.150091;113.330273,23.150091;113.330382,23.150043;113.330382,23.150043;113.330938,23.149809',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广园快速路入口步行160米右转',\n",
       "    'orientation': [],\n",
       "    'road': '广园快速路入口',\n",
       "    'distance': '160',\n",
       "    'duration': '128',\n",
       "    'polyline': '113.330938,23.149805;113.33112,23.149787;113.331298,23.149735;113.331298,23.149735;113.332439,23.149366',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行36米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '36',\n",
       "    'duration': '29',\n",
       "    'polyline': '113.332439,23.149362;113.332322,23.149054',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿广园快速路辅路向东步行50米向右前方行走',\n",
       "    'orientation': '东',\n",
       "    'road': '广园快速路辅路',\n",
       "    'distance': '50',\n",
       "    'duration': '40',\n",
       "    'polyline': '113.332318,23.149049;113.332786,23.148898',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿天寿路向南步行547米',\n",
       "    'orientation': '南',\n",
       "    'road': '天寿路',\n",
       "    'distance': '547',\n",
       "    'duration': '438',\n",
       "    'polyline': '113.332786,23.148893;113.33293,23.148798;113.332999,23.148689;113.333012,23.148611;113.333051,23.147522;113.333051,23.147522;113.332856,23.147031;113.332856,23.147031;113.332543,23.146185;113.332543,23.146185;113.332461,23.145951;113.3324,23.14572;113.3324,23.14572;113.332309,23.145308;113.332248,23.144965;113.332222,23.14464;113.332222,23.14464;113.332218,23.144149',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿天寿路向南步行52米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '天寿路',\n",
       "    'distance': '52',\n",
       "    'duration': '42',\n",
       "    'polyline': '113.332214,23.144145;113.332214,23.143885;113.332235,23.143681',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿林乐路向西步行406米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '林乐路',\n",
       "    'distance': '406',\n",
       "    'duration': '325',\n",
       "    'polyline': '113.332235,23.143676;113.332222,23.143581;113.332188,23.143546;113.332131,23.143524;113.332131,23.143524;113.332079,23.14352;113.332079,23.14352;113.331324,23.143429;113.331324,23.143429;113.331181,23.143416;113.331181,23.143416;113.330681,23.143355;113.330681,23.143355;113.330356,23.14332;113.330356,23.14332;113.330326,23.14332;113.330326,23.14332;113.330004,23.143281;113.330004,23.143281;113.32918,23.143207;113.32918,23.143207;113.328446,23.143147;113.328446,23.143147;113.328355,23.143112',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿林和东路向南步行118米',\n",
       "    'orientation': '南',\n",
       "    'road': '林和东路',\n",
       "    'distance': '118',\n",
       "    'duration': '94',\n",
       "    'polyline': '113.328351,23.143108;113.328333,23.142552;113.328333,23.142552;113.328338,23.142044',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿天河北路步行52米左转',\n",
       "    'orientation': [],\n",
       "    'road': '天河北路',\n",
       "    'distance': '52',\n",
       "    'duration': '42',\n",
       "    'polyline': '113.328338,23.14204;113.328294,23.141649;113.328294,23.141649;113.328255,23.141576',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行13米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '13',\n",
       "    'duration': '10',\n",
       "    'polyline': '113.328251,23.141571;113.328359,23.141506',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿体育东路向南步行13米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '体育东路',\n",
       "    'distance': '13',\n",
       "    'duration': '10',\n",
       "    'polyline': '113.328359,23.141502;113.328359,23.141389',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行19米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '19',\n",
       "    'duration': '15',\n",
       "    'polyline': '113.328359,23.141385;113.328251,23.141254',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿体育东路向东南步行4米右转',\n",
       "    'orientation': '东南',\n",
       "    'road': '体育东路',\n",
       "    'distance': '4',\n",
       "    'duration': '3',\n",
       "    'polyline': '113.328247,23.141246;113.328277,23.141228',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿体育东路向南步行349米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '体育东路',\n",
       "    'distance': '349',\n",
       "    'duration': '279',\n",
       "    'polyline': '113.328277,23.141224;113.328242,23.140777;113.328242,23.140777;113.328242,23.14046;113.328242,23.14046;113.328234,23.139965;113.328234,23.139965;113.328238,23.138707;113.328238,23.138707;113.328251,23.138116;113.328251,23.138116;113.328251,23.138056',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西步行220米到达目的地',\n",
       "    'orientation': '西',\n",
       "    'road': [],\n",
       "    'distance': '220',\n",
       "    'duration': '176',\n",
       "    'polyline': '113.328251,23.138051;113.328043,23.138047;113.328043,23.138047;113.327839,23.13803;113.327839,23.13803;113.327205,23.138025;113.327205,23.138025;113.326089,23.138025',\n",
       "    'action': [],\n",
       "    'assistant_action': '到达目的地',\n",
       "    'walk_type': '0'}]}]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['paths']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
